package com.google.gwt.sample.dynatablerf.client.user.views;

import java.util.List;

import com.google.gwt.sample.dynatablerf.client.user.presenters.CategoriaListPresenter.CategoriaDisplay;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.googlecode.mgwt.ui.client.widget.Button;
import com.googlecode.mgwt.ui.client.widget.base.ButtonBase;

public class CategoriaListView extends Composite implements CategoriaDisplay {

	private VerticalPanel panel;

	public CategoriaListView() {
		panel = new VerticalPanel();
		panel.setSize("100%", "100%");
		initWidget(panel);
	}

	@Override
	public void copyFrom(List<ButtonBase> buttonList) {
		for (ButtonBase buttonBase : buttonList)
			panel.add(buttonBase);

	}

	@Override
	public ButtonBase createButton() {
		return new Button();
	}
	
}
